package com.abhipedro.admobjs;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;

public class MainActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        WebView wb = (WebView) findViewById(R.id.testads);
        wb.loadUrl("file:///android_asset/adspage.html");
        WebSettings wbsettings = wb.getSettings();
        wbsettings.setJavaScriptCanOpenWindowsAutomatically(true);
        wbsettings.setJavaScriptEnabled(true);
        wbsettings.setAllowFileAccess(true);
        wbsettings.setDomStorageEnabled(true);
        wbsettings.setPluginsEnabled(true);
    }
}